home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / LinAlg 3.1 / LinAlg / vzeroin.dat < prev    next >
Encoding:
Text File  |  1995-12-21  |  718 b   |  27 lines  |  [TEXT/CWIE]

  1.  
  2.  
  3. -------------------------------------------------------------------------------
  4.         Testing the Brent's root finder
  5.  
  6.  
  7. For function x^3 - 2*x - 5,
  8. the root over [2,3] is  2.094551482e+00
  9. Function value at the root found    -6.5533e-16
  10. No. of iterations       11
  11. Exact root is       2.0945514815
  12.  
  13. For function cos(x)-x,
  14. the root over [2,3] is    2.000000000e+00
  15. Function value at the root found    -2.4161e+00
  16. No. of iterations       52
  17.  
  18. For function cos(x)-x,
  19. the root over [-1,3] is 7.390851332e-01
  20. Function value at the root found    0.0000e+00
  21. No. of iterations       11
  22.  
  23. For function sin(x)-x,
  24. the root over [-1,3] is -1.643737374e-08
  25. Function value at the root found    0.0000e+00
  26. No. of iterations       58
  27.